<?php
 require("./keywords.php");
 
 
 if(isset($_POST['newKeyword']))
 {	
 	$error = addKeywords($_POST['newKeyword']);
 }
 
 $keyword = getKeyword($_GET['id']);

 $keyword = html_input_treatment($keyword);

?>
<!DOCTYPE html>
    <html>
    <head>
        <meta charset="utf-8" />
        <title><?=$title ?> Keywords Edit</title>
         <? require('../inc/header-info.php'); ?>
    </head>
    <body>
        <div class="container">
            <? include('../inc/nav.php'); ?>
         <form id="editkeyword" method="post" action="index.php">
            <div class="input-append">
  				<input class="span2 required" id="appendedInputButtons" size="16" type="text" name="editKeyword" value="<?=$keyword['value']?>">
  				<input type="hidden" name="id" value="<?=$keyword['id']?>">
  				<button class="btn" type="submit">Edit</button>
  				<a href="<?=$url?>keywords/index.php"><button class="btn" type="button">Cancel</button></a>
			</div>
			</form>   
		</div>
		<script type="text/javascript" src="http://jzaefferer.github.com/jquery-validation/jquery.validate.js"></script>
		<script>
			$(function() {

				$("#editkeyword").validate();

			});
		</script>
		</body>
</html>